package com.ol.edu.server.mapper;


import com.ol.edu.server.entity.Course;
import com.ol.edu.server.entity.CourseLesson;
import com.ol.edu.server.entity.CourseSection;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Roger
 * @date 2020/9/6 14:45
 * @description
 */
@Repository
public interface CourseContentMapper {
    List<CourseSection> findSectionAndLesson(Integer courseId);

    Course findCourseByCourseId(Integer courseId);

    void saveSection(CourseSection section);

    void updateSection(CourseSection section);

    Integer updateSectionStatus(CourseSection courseSection);

    void saveLesson(CourseLesson lesson);

    void updateLession(CourseLesson lesson);
}
